<template>
    <el-input v-model="c"
              :required="required"
              :placeholder="placeholderText"
              :type="type"/>
</template>

<script>
import KInputUpload from '../../input-upload'
export default {
    name: 'KInput',
    components: { KInputUpload },
    props: {
        value: [String, Number, Array],
        defaultValue: [String, Number, Array],
        type: String,
        required: Boolean,
        options: Array,
        placeholderText: String,
        multi: Boolean,
    },
    computed: {
        c: {
            get() {
                return this.value;
            },
            set(val) {
                this.$emit('input', val);
            }
        }
    },
    methods: {
        // 值修改
        onChangeValue(value) {
            this.$emit('change', value);
        }
    }
}
</script>

<style scoped>

</style>
